package code.coolbaby.sms.entity;

import java.sql.Timestamp;

import javax.persistence.AttributeOverride;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

import code.coolbaby.core.orm.IdEntity;

/**
 * 接收到的短信息.
 * 
 * @author Kanine
 */
@Entity
@Table(name = "MessagesReceived")
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
@AttributeOverride(name = "id", column = @Column(name = "messageId"))
public class MessagesReceived extends IdEntity {

	private String mobile; // 发送方手机号码

	private String content; // 短信内容

	private Timestamp receiveTime; // 接收时间

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Timestamp getReceiveTime() {
		return receiveTime;
	}

	public void setReceiveTime(Timestamp receiveTime) {
		this.receiveTime = receiveTime;
	}
}
